
from tools import *

l=getTagContentList("task.xml",'renwu')

for i in l:
    z = i.childNodes[1].getAttribute('level')
    if z == "灰度图":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        hui(x,m)
    if z == "蓝通图":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        blue(x,m)
    if z == "红通图":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        red(x,m)    
    if z == "绿通图":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        green(x,m)  
    if z == "变亮10%":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        liang(x,m)
    if z == "变暗10%":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        an(x,m)
    if z == "部分灰度":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        n = i.childNodes[7].childNodes[0].data
        bfhui(m,n,float(x))
    if z == "蓝屏特效":
        x = i.childNodes[3].childNodes[0].data
        m = i.childNodes[5].childNodes[0].data
        n = i.childNodes[7].childNodes[0].data
        p = i.childNodes[9].childNodes[0].data
        lan(m,n,p,float(x))

